package com.lkd.http.controller;

import com.lkd.entity.RegionEntity;
import com.lkd.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/region")
public class RegionController {
    @Autowired
    private RegionService regionService;

    /**
     * 分页搜索
     * @param pageIndex
     * @param pageSize
     * @param name
     * @return
     */

    /**
     * 添加区域
     * @param regionReq
     * @return
     */

    /**
     * 更新区域
     * @param id
     * @param req
     * @return
     */

    /**
     * 删除区域
     * @param regionId
     * @return
     */




    /**
     * 获取区域详情
     * @param regionId
     * @return
     */
    @GetMapping("/{regionId}")
    public RegionEntity findById(@PathVariable String regionId){
        return regionService.getById(Long.valueOf(regionId));
    }

}
